import request from '@/utils/request'

// 获取列表
export const wordList = (params) => {
    return request.get('/article-word/list', { params })
}

// 获取词汇翻译
export const wordTranslate = (params) => {
    return request.get('/article-word/translate', { params })
}

// 加入生词
export const addWord = (params) => {
    return request.post('/article-word', params)
}

// 开始识词
export const startLearn = (params) => {
    return request.post('/article-word/start', params)
}